package cn.lx.expansion;

/**
 * @author lixin
 * @Classname ConcreateClass1
 * @Description TODO
 * @Date 2019/10/5 上午9:17
 */
public class ConcreateClass1 extends AbstractClass {

    private boolean alarmFlag = true;

    @Override
    protected void doSomething() {
        System.out.println("ConcreateClass1");
    }

    @Override
    protected void doAnything() {
        System.out.println("ConcreateClass1");
    }

    @Override
    protected void method1() {
        System.out.println("hello world1");
    }

    @Override
    protected boolean isAlarm() {
        return this.alarmFlag;
    }

    public void setAlarmFlag(boolean isAlarm) {
        this.alarmFlag = isAlarm;
    }
}
